Listers, Oops! I completely misunderstood Bill Huber's answer to how to replicate Map Query in Avenue! A BIG 'Duh' on my part! Of course the real answer is very, very simple. So there is no future confusion I'll post Bill's answer. Sorry for the bad information! Pat The Map Calculator is IDENTICAL to what you can do in Avenue: whatever can be done in the MC can be done in Avenue. For instance, the Map Calculator expression ([grid1] > 0) and ([grid1] < 20) and ([grid2] > 0) and ([grid2] < 40) when coded in Avenue will look something like theView = av.GetActiveDoc grid1 = theView.FindTheme("grid1") grid2 = theView.FindTheme("grid2") gResult = (grid1 > 0) and (grid1 < 20) and (grid2 > 0) and (grid2 < 40) gThmResult = GTheme.Make(gResult) theView.AddTheme(gThmResult) ' end of example --Bill Huber